<?php
namespace app\admin\model;

use think\Db;
use think\Model;

class Recommend extends Model
{

    protected $name = 'users_share_record';

    public static function getRecommendList($field,$limit =20,$where=[]){
        return self::where($where)
            ->field($field)
            ->order('id','desc')
            ->paginate($limit,[]);
    }
}